/* 探索页面样式 */

/* 页面容器 */
.explore-container {
    padding: 30px;
    max-width: 1600px;
    margin: 0 auto;
}

/* 页面标题 */
.page-header {
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.page-header p {
    font-size: 16px;
    color: #b3b3b3;
}

/* 分类卡片网格 */
.discovery-links {
    margin-bottom: 48px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.category-card {
    position: relative;
    background-color: #282828;
    border-radius: 8px;
    padding: 24px;
    color: white;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.category-card h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.category-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 2;
}

.category-card i {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 48px;
    opacity: 0.5;
    transition: all 0.3s ease;
    z-index: 1;
}

.category-card:hover i {
    opacity: 0.7;
    transform: scale(1.1);
}

/* 分类导航 */
.genre-navigator {
    margin-bottom: 48px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.genre-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.genre-tab {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.genre-tab:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.genre-tab.active {
    background-color: white;
    color: #121212;
}

/* 编辑推荐 */
.editors-picks {
    margin-bottom: 48px;
}

.playlist-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.featured-card {
    transition: all 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
}

.featured-card-img {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    background-color: #333;
    min-height: 180px;
}

.featured-card-img img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: all 0.3s ease;
}

/* 图片加载失败时的备用显示 */
.featured-card-img img:not([src]),
.featured-card-img img[src=""],
.featured-card-img img[src="assets/images/playlists/featured1.jpg"],
.featured-card-img img[src="assets/images/playlists/featured2.jpg"],
.featured-card-img img[src="assets/images/playlists/featured3.jpg"],
.featured-card-img img[src="assets/images/playlists/featured4.jpg"],
.featured-card-img img[src="assets/images/playlists/featured5.jpg"] {
    opacity: 0;
}

.featured-card-img::before {
    content: "\f001"; /* 音乐图标 unicode */
    font-family: "Font Awesome 5 Free";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.featured-card:hover .featured-card-img img {
    filter: brightness(0.7);
}

.featured-card-img .play-button {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 48px;
    height: 48px;
    background-color: #1DB954;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.featured-card:hover .play-button {
    opacity: 1;
    transform: translateY(0);
}

.featured-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: white;
}

.featured-card p {
    font-size: 14px;
    color: #b3b3b3;
}

/* 心情卡片 */
.mood-categories {
    margin-bottom: 48px;
}

.mood-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.mood-card {
    position: relative;
    background-color: #282828;
    border-radius: 8px;
    padding: 20px;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.mood-card:hover {
    transform: translateY(-5px);
}

.mood-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    z-index: 2;
}

.mood-card i {
    font-size: 36px;
    color: white;
    opacity: 0.7;
    z-index: 2;
}

/* 艺术家栏 */
.popular-artists {
    margin-bottom: 48px;
}

.artist-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 24px;
}

.artist-card {
    text-align: center;
    transition: all 0.3s ease;
}

.artist-card:hover {
    transform: translateY(-5px);
}

.artist-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 12px;
}

.artist-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.artist-card:hover .artist-avatar img {
    transform: scale(1.05);
}

.artist-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.artist-card p {
    font-size: 14px;
    color: #b3b3b3;
}

/* 年代浏览 */
.decade-browser {
    margin-bottom: 48px;
}

.decade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.decade-card {
    position: relative;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.decade-card:hover {
    transform: translateY(-5px);
}

.decade-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 16px;
}

.decade-overlay h3 {
    color: white;
    font-size: 18px;
    font-weight: 700;
}

/* 地区音乐 */
.regional-music {
    margin-bottom: 48px;
}

.region-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.region-card {
    position: relative;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.region-card:hover {
    transform: translateY(-5px);
}

.region-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 16px;
}

.region-overlay h3 {
    color: white;
    font-size: 18px;
    font-weight: 700;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .artist-slider {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .artist-avatar {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .explore-container {
        padding: 20px;
    }
    
    .page-header h1 {
        font-size: 36px;
    }
    
    .category-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .playlist-carousel {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .mood-grid, .decade-grid, .region-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 28px;
    }
    
    .category-grid, .playlist-carousel, .mood-grid, .decade-grid, .region-grid {
        grid-template-columns: 1fr;
    }
    
    .artist-slider {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .artist-avatar {
        width: 100px;
        height: 100px;
    }
    
    .mood-card, .decade-card, .region-card {
        height: 140px;
    }
} 